#include "DTD_Choix.h"
#include <string>


using namespace std;

DTD_Choix::DTD_Choix( vector<DTD_Normal *> * contents ) : DTD_Complex( contents )
{

}

//DTD_Choix::DTD_Choix( char card, vector<DTD_Normal *> * contents ) : DTD_Complex( card, contents )
//{
//
//}


string DTD_Choix::toString()
{
	string R = contents->at(0)->toString();
	for (unsigned int i = 1; i < contents->size(); i++)
	{
		R += " | ";
		R += contents->at(i)->toString();
	}

	return  " ( " + R + " ) " ;
}
